package org.example.easybuy.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.example.easybuy.entity.User;

import java.util.Map;

public interface LoginService {
    User selectUserByLoginName(String loginName);

    Map<String,Object> login(User user) throws JsonProcessingException;
}
